package cn.big.bigd.biocode.util;

import java.util.Arrays;
import java.util.List;

public class CommonStaticUtil {

    public static boolean containsForList(List<Object> list,Object o){

        return  list.contains(o);


    }

    public static boolean containsForArr(Object[] arr,Object o){

        if(arr==null||arr.length<=0){
            return  false;

        }

        if(Integer.valueOf(o.toString())==3){
            System.out.println(" 1---"+Arrays.asList(arr).toString()+"--:"+o.toString());
       }

        if(Arrays.asList(arr).contains(3)){
            System.out.println(" 2---"+Arrays.asList(arr).toString()+"--:"+o.toString());
        }

        if(Arrays.asList(arr).contains(o)){
            System.out.print(Arrays.asList(arr).toString());
            System.out.println(":----:"+o.toString());
        }
        return Arrays.asList(arr).contains(o);

    }
}
